/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#ifndef INCLUDE_GEOMETRY
#define INCLUDE_GEOMETRY

#include <basic_vec.h>




Inline bool f_geom_包围盒碰撞(const S_Bounding2D& box0, const S_Bounding2D& box1) {
	if (box1.min.x > box0.max.x) return false;
	if (box1.min.y > box0.max.y) return false;
	if (box1.max.x < box0.min.x) return false;
	if (box1.max.y < box0.min.y) return false;

	return true;
}










#endif //INCLUDE_GEOMETRY


